use strict;
use warnings;

use EMS::Model::Alliance;

package EMS::Model::Corporation::Schema;
use Jifty::DBI::Schema;

# Your column definitions go here.  See L<Jifty::DBI::Schema> for
# documentation about how to write column definitions.

column name =>
    label is "Name",
    is mandatory,
    is distinct,
    type is 'varchar(255)';

column alliance =>
    label is "Alliance",
    refers_to EMS::Model::Alliance;

column pilots =>
    refers_to EMS::Model::PilotCollection by 'corp';

package EMS::Model::Corporation;
use base qw/EMS::Record/;
use EMS::Model::PilotCollection;

# Your model-specific methods go here.

1;
